package com.example.litehdfs.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.litehdfs.model.db.Users;
import com.example.litehdfs.model.dto.UserInfo;
import com.example.litehdfs.model.req.QueryUserPageReq;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author mading
 * @since 2023-11-08
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {

	
	UserInfo getUserByPhone(@Param("phone") String phone);
	UserInfo getUserByWxMiniappOpenid(@Param("wxMiniappOpenid") String wxMiniappOpenid);
	UserInfo getUser(@Param("userId") Long userId);
	List<UserInfo> listUsers(IPage<UserInfo> ipage,@Param("req") QueryUserPageReq req);
	
}
